package com.jsam.dtos;

import java.io.Serializable;


public class TagDto implements Serializable {
	private static final long serialVersionUID = -2226781605267735348L;

	private int tagIndex;
	private String tagName;
	private int bookmarkIndex;
	
	public TagDto() {
	}
	
	public TagDto(int tagIndex, String tagName, int bookmarkIndex) {
		super();
		this.tagIndex = tagIndex;
		this.tagName = tagName;
		this.bookmarkIndex = bookmarkIndex;
	}



	public int getTagIndex() {
		return tagIndex;
	}



	public void setTagIndex(int tagIndex) {
		this.tagIndex = tagIndex;
	}



	public String getTagName() {
		return tagName;
	}



	public void setTagName(String tagName) {
		this.tagName = tagName;
	}



	public int getBookmarkIndex() {
		return bookmarkIndex;
	}



	public void setBookmarkIndex(int bookmarkIndex) {
		this.bookmarkIndex = bookmarkIndex;
	}

	

	@Override
	public String toString() {
		return "["+tagIndex+","+tagName+","+bookmarkIndex+"]";
	}

	@Override
	public boolean equals(Object obj) {
		boolean isS = false;
		
		if (obj instanceof TagDto) {
			TagDto tag = (TagDto)obj;
			
			if(this.tagName == tag.tagName){
				isS = true;
			}
		}
		return isS;
	}

	@Override
	public int hashCode() {
		return this.hashCode() + 137;
	}
}
